﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Purchase.GoodsPurchaseChecklist;
using BCDto.Sim.Admin.Admin;
using BCDto.Trading.Purchase.GoodsPurchaseChecklist;
using BCEntity.Trading.Purchase.GoodsPurchaseChecklist;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Purchase.GoodsPurchaseChecklist
{
    /// <summary>
    /// 商品采购清单
    /// </summary>
    public interface IGoodsPurchaseChecklistService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="goodsPurchaseChecklistId">商品采购清单Id</param>
        bool Exists(long goodsPurchaseChecklistId);
        /// <summary>
        /// 添加商品采购清单
        /// </summary>
        /// <param name="requestDto">商品采购清单信息</param>
        /// <param name="adminDto"></param>
        GoodsPurchaseChecklistDto Add(GoodsPurchaseChecklistAppendDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新商品采购清单
        /// </summary>
        /// <param name="putDto">商品采购清单信息</param>
        /// <param name="adminDto"></param>
        GoodsPurchaseChecklistDto Update(GoodsPurchaseChecklistPutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除商品采购清单
        /// </summary>
        /// <param name="goodsPurchaseChecklistId">商品采购清单Id</param>
        bool Delete(long goodsPurchaseChecklistId);
        /// <summary>
        /// 获取商品采购清单
        /// </summary>
        /// <param name="goodsPurchaseChecklistId">商品采购清单Id</param>
        GoodsPurchaseChecklistDto Get(long goodsPurchaseChecklistId);
        /// <summary>
        /// 获取商品采购清单列表
        /// </summary>
        IEnumerable<GoodsPurchaseChecklistDto> GetList(long goodsPurchaseId);
        /// <summary>
        /// 获取商品采购清单分页列表
        /// </summary>
        /// <param name="goodsPurchaseId">商品采购单Id</param>
        /// <param name="categoryName">商品分类名称</param>
        /// <param name="goodsName">商品名称</param>
        /// <param name="sku">商品SKU</param>
        /// <param name="vendorName">供应商名称</param>
        /// <param name="adminName">创建人姓名</param>
        /// <param name="adminId">创建人Id</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">商品采购清单每页数据条数</param>
        PageableList<GoodsPurchaseChecklistDto> Query(long? goodsPurchaseId, string categoryName, string goodsName, string sku, string vendorName, string adminName, long? adminId, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}